<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" 
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/template.xhtml"
                xmlns:constants="http://www.tuanzi.com/constants/tags"
                xmlns:security="http://www.springframework.org/security/tags">
    <ui:define name="title">广告位编辑</ui:define>
    <ui:define name="content">
        <h:form>
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="编辑" icon="fa fa-edit"
                                         actionListener="#{spaceConfInfoBean.changeStatusToEdit}"
                                         process="@this"
                                         update="@form"
                                         rendered="#{spaceConfInfoBean.isView() and security:areAllGranted('LOAN_FAMILY_TAGS_FIRST_PARTY_EDIT')}"/>
                        <p:commandButton value="保存" icon="fa fa-save"
                                         actionListener="#{spaceConfInfoBean.onSave}"
                                         rendered="#{spaceConfInfoBean.isNotView() and security:areAnyGranted('LOAN_FAMILY_TAGS_FIRST_PARTY_EDIT,LOAN_FAMILY_TAGS_FIRST_PARTY_ADD')}"
                                         update="@form"/>
                        <p:commandButton value="取消" icon="fa fa-reply"
                                         actionListener="#{spaceConfInfoBean.changeStatusToView}"
                                         rendered="#{spaceConfInfoBean.isEdit()}"
                                         process="@this"
                                         update="@form"/>
                        <p:button value="返回" icon="fa fa-reply-all" href="#{currentUserBean.back}"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">
                <div class="ui-g">
                    <div class="ui-g-12">
                        <div class="card">
                            <h1>用户信息</h1>
                            <p:panelGrid columns="4"
                                         columnClasses="ui-grid-col-2,ui-grid-col-4,ui-grid-col-2,ui-grid-col-4"
                                         layout="grid" styleClass="ui-panelgrid-blank"
                                         style="border:0px none; background-color:transparent;">
                                <p:outputLabel for="code" value="广告位ID"/>
                                <p:inputText id="code" value="#{spaceConfInfoBean.$.code}"
                                             disabled="#{spaceConfInfoBean.isView()}"/>

                                <p:outputLabel for="kindname" value="广告位名称"/>
                                <p:inputText id="kindname" value="#{spaceConfInfoBean.$.kindname}"
                                             disabled="#{spaceConfInfoBean.isView()}"/>
                            </p:panelGrid>
                        </div>
                    </div>
                </div>
            </div>
        </h:form>
    </ui:define>
</ui:composition>





